home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1991 / Feb 91 / MacApp.Tech$ 2⁄22⁄91 / 3051-Re TFloatWindow and -Feb91 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.2 KB  |  30 lines  |  [TEXT/GEOL]

  1. Item    6656060                         21-Feb-91        16:15PST
  2.  
  3. From:   KNEPPER                         Knepper, Christopher
  4.  
  5. To:     D0317                           Matrix Instr, D Miller,PRT
  6.  
  7. cc:     MACAPP.TECH$                    MacApp Technical
  8.  
  9. ------------------------------------------------------------------------------
  10.  
  11. Sub:    Re: TFloatWindow and Activate
  12.  
  13. Kevin,
  14.  
  15. ActivatePalette() will only activate the window's palette if that window is the
  16. front window. So, MAActivatePalette() can be used to fool ActivatePalette()
  17. into thinking that the given window is the front-most window. It is actually
  18. used to activate the palette for "non-front" windows (e.g. document windows
  19. behind floaters). The idea is to patch FrontWindow() so that it will return the
  20. window passed into MAActivatePalette(), thus fooling ActivatePalette() into
  21. thinking that the document window is the real front window, and therefore its
  22. palette should be activated.
  23.  
  24. The problem you've encountered is that MAActivatePalette() may not be called
  25. everywhere that it should be called. You should try calling MAActivatePalette()
  26. on the document window whenever the window is selected or openend.
  27.  
  28. -Chris
  29.  
  30.